import request from "@/utils/request";

const baseURL = "/logs";

// 获取日志列表
export const getLogList = (queryParams) =>
  request({
    url: `${baseURL}/list`,
    method: "POST",
    data: queryParams,
  });

// 删除日志
export const deleteLog = (ids) =>
  request({
    url: `${baseURL}`,
    method: "DELETE",
    data: ids,
  });

// 清空日志
export const clearLogs = () =>
  request({
    url: `${baseURL}/clear`,
    method: "DELETE",
  });
